home *** CD-ROM | disk | FTP | other *** search
- trueConvert
-
- trueConvert converts stacks that use trueColor
- to stacks that are colorized using Apple's Color Tools.
-
- I wrote this stack to ease an eventual transition to HyperCard 3.
-
- trueConvert requires HyperCard (Player) 2.2 or later,
- and the stack "trueColor".
-
- If you have HyperCard 2.1, you can use it for creating your
- stacks in trueColor, and then convert them using HyperCard
- Player 2.2 or later (available free from Apple on the internet).
-
-
- Important Note
-
- Note that "trueConvert" will place a copy of Apple's AddColor XCMD,
- version 2.2, into the converted stack. This means that you may distribute
- the converted stack only if you are a registered user of HyperCard 2.2.
-
- If you own a full version of HyperCard 2.3 or newer you can upgrade
- the converted stack by opening it and choosing "Open Coloring Tools"
- from the "Color" menu. This will place the newer version of Apple's
- AddColor XCMD (and a PowerPC native version of it) into the stack.
-
- The following paragraph is from Apple's Color Tools Stack, version 2.2:
-
- Registered users of HyperCard v2.2 may freely distribute the AddColor XCMD
- for personal and commercial purposes. Any product or stack containing these
- resources must display the following copyright notice:
- "AddColor XCMD ©1993 Apple Computer, Inc. All Rights Reserved."
-
-
- How to use it
-
- The converter lets you choose a stack, creates a copy
- and converts the copy. It goes from card to card during conversion
- so that you can see the results immediately.
- (you can stop the conversion by pressing the mouse down.)
-
- You can specify the number of colors for the color
- buffer that will be created each time the converted stack is opened:
- use the "image quality" of trueColor's pasting options (ctrl-o).
- If you choose "don't change", the number of colors of the current
- card screen (at conversion time) will be taken.
-
- If the conversion stops with the message
- "Error: AddColor incorrectly installed." or if it just stops and beeps,
- the problem is probably lack of memory.
-
- The converted stacks can be viewed in HyperCard 2.1 or later.
-
- The conversion is not perfect:
- - showing and hiding in color will not work
- - pictures and icons will not be clipped at the rectangle
- of the button or the field
-
-
- Scripting
-
- trueConvert s
-
- s is the name of the stack to convert.
- trueColor's global variable truePasteColor is used for
- the bit depth in "AddColor install, depth" at openStack.
-
- trueConvert copies several resources, including the AddColor XCMD
- and inserts some scripts at the stack level, namely the ones required
- for the Color Tools and also handlers which translate trueShow and
- trueHide into show and hide.
-
- Color fillings for buttons and fields are created by the "addButton"
- and "addField" options of the AddColor XCMD, except for transparent
- parts which are colorized by "addRect" (else they would show in
- lighter colors).
-
- Pictures and icons are added by "addPict".
-